package guoanmaker.operator.business.service;

import guoanmaker.operator.business.model.OperatorHotServer;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorHotServerServiceInterface 
 * @Description: OperatorHotServerServiceInterface
 * @date 2017/6/29
 */
public interface OperatorHotServerServiceInterface {

    /** 
    * @Title: saveHotServer
    * @Description: 新增/修改 热门服务
    * @param：OperatorRoundPhoto   
    * @return OperatorHotServer    
    * @throws 
    */
    OperatorHotServer saveHotServer(OperatorHotServer operatorHotServer);

    /** 
    * @Title: getAllHotServer
    * @Description: 查询所有热门服务
    * @param：void  
    * @return List<OperatorHotServer>   
    * @throws 
    */
    List<OperatorHotServer> getAllHotServer();

    /** 
    * @Title: getAllHotServerByPage
    * @Description: 查询全部热门服务并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
    * @return Page<OperatorHotServer>   
    * @throws 
    */
    Page<OperatorHotServer> getAllHotServerByPage(Integer page, Integer size);

    /** 
     * @Title: getHotServerByPageOrderByWeight
     * @Description: 按权重排序查询热门服务并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
     * @return Page<OperatorHotServer>   
     * @throws 
     */
    Page<OperatorHotServer> getHotServerByPageOrderByWeight(Integer page, Integer size);


    /** 
    * @Title: deleteHotServerById
    * @Description: 根据Id删除热门服务 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteHotServerById(String id);

    /** 
    * @Title: getHotServerById 
    * @Description: 根据Id查询热门服务
    * @param： String id
    * @return OperatorHotServer    
    * @throws 
    */
    OperatorHotServer getHotServerById(String id);

    /** 
     * @Title: countAllById 
     * @Description: 根据Id查询热门服务
     * @param： String id
     * @return Integer    
     * @throws 
     */
    Integer countAllById();

    /** 
     * @Title: getAllAndServerName 
     * @Description: 查询所有并查询服务名称
     * @return OperatorAppBanner    
     * @throws 
     */
    List<OperatorHotServer> getAllAndServerName(String cityId);
    
    OperatorHotServer getHotServerByserverId(String serverId);
    
    /**
     * 固定值cityid为11
    * @Title: getAllhotServerByNull 
    * @Description: TODO(这里用一句话描述这个方法的作用) 
    * @param cityId
    * @return    设定文件 
    * @return List<OperatorHotServer>    返回类型 
    * @throws 
     */
    List<OperatorHotServer> getAllhotServerByNull(String cityId);
    
    void delectAllBycitycode(String cityId);

}
